﻿//获取学年列表
var date = new Date();
var YearNow = date.getFullYear();
var YearNowInt = parseInt(YearNow);
var SchoolYearList = [];
var SchoolYearItem1 = { value: YearNowInt.toString() + "-" + (YearNowInt + 1).toString(), text: YearNowInt.toString() + "-" + (YearNowInt + 1).toString() };
var SchoolYearItem2 = { value: (YearNowInt + 1).toString() + "-" + (YearNowInt + 2).toString(), text: (YearNowInt + 1).toString() + "-" + (YearNowInt + 2).toString() };
var SchoolYearItem3 = { value: (YearNowInt + 2).toString() + "-" + (YearNowInt + 3).toString(), text: (YearNowInt + 2).toString() + "-" + (YearNowInt + 3).toString() };
var SchoolYearItem4 = { value: (YearNowInt + 3).toString() + "-" + (YearNowInt + 4).toString(), text: (YearNowInt + 3).toString() + "-" + (YearNowInt + 4).toString() };
var SchoolYearItem5 = { value: (YearNowInt - 1).toString() + "-" + YearNowInt.toString(), text: (YearNowInt - 1).toString() + "-" + YearNowInt.toString() };
SchoolYearList.push(SchoolYearItem1);
SchoolYearList.push(SchoolYearItem2);
SchoolYearList.push(SchoolYearItem3);
SchoolYearList.push(SchoolYearItem4);
SchoolYearList.push(SchoolYearItem5);
//获取计划年度列表
var YearList = [];
var YearItem1 = { value: YearNowInt.toString(), text: YearNowInt.toString() };
var YearItem2 = { value: (YearNowInt + 1).toString(), text: (YearNowInt + 1).toString() };
var YearItem3 = { value: (YearNowInt + 2).toString(), text: (YearNowInt + 2).toString() };
var YearItem4 = { value: (YearNowInt + 3).toString(), text: (YearNowInt + 3).toString() };
var YearItem5 = { value: (YearNowInt - 1).toString(), text: (YearNowInt - 1).toString() };
YearList.push(YearItem1);
YearList.push(YearItem2);
YearList.push(YearItem3);
YearList.push(YearItem4);
YearList.push(YearItem5);